using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region StyleImage

	/// <summary>
	/// StyleImage object for NHibernate mapped table 'StyleImage'.
	/// </summary>
	public class StyleImage
	{
		#region Member Variables
		
		protected int _id;
		protected int _styleId;
		protected string _title;
		protected string _filePath;
		protected int _sortId;

		#endregion

		#region Constructors

		public StyleImage() { }

		public StyleImage( int styleId, string title, string filePath, int sortId )
		{
			this._styleId = styleId;
			this._title = title;
			this._filePath = filePath;
			this._sortId = sortId;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual int StyleId
		{
			get { return _styleId; }
			set { _styleId = value; }
		}

		public  virtual string Title
		{
			get { return _title; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Title", value, value.ToString());
				_title = value;
			}
		}

		public  virtual string FilePath
		{
			get { return _filePath; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for FilePath", value, value.ToString());
				_filePath = value;
			}
		}

		public  virtual int SortId
		{
			get { return _sortId; }
			set { _sortId = value; }
		}

		

		#endregion
	}
	#endregion
}